<?php

namespace IDock\Insurance\YAIC\Request;

use IDock\Insurance\YAIC\Response\VehicleModelResponse;
use IDock\Visitor\VehicleModelVisitor;

class VehicleModelRequest extends AllYAICRequest
{
    protected $route = '';

    protected $response = VehicleModelResponse::class;

    protected $urlTip = '车型查询';

    public $transCode = 'C1';

    /*** @var  VehicleModelVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        return [
            'cityCode' => $this->visitor->argc['cityCode'] ?? '',
            'cityName' => $this->visitor->argc['cityName'] ?? '成都',
            'frameNo' => $this->visitor->vin,
            'licenseNo' => $this->visitor->licenseNo,
            'engineNo' => $this->visitor->engineNo,
            'enrollDate' => $this->visitor->firstRegisterDate,
            'modelName' => $this->visitor->vehicleModel,
            'extendInfo' => [
                'ExtendInfoDTO' => [[
                    'key' => 'salesManComCode',
                    'value' => '0251011010000',
                ]]
            ]
        ];
    }
}
